package org.zizi.db.column.impl;

import java.sql.Clob;
import java.sql.ResultSet;

import org.zizi.db.column.AbstractColumnReader;

public class ClobColumnReader extends AbstractColumnReader
{
	public String read(ResultSet rs, int column) throws Exception
	{
		Clob clob = rs.getClob(column);
		if (clob == null) return null;
		
		String o = clob.getSubString(1, (int) clob.length());
		return charset.encodeToJava(o);
	}
}